package com.allwees.core.wf.event;

import com.allwees.core.mq.rabbitmq.MqEvent;
import com.allwees.core.wf.Action;

/**
 *
 *
 * @author yangylsky
 * @since 2019-12-11
 *
 * @param <A>
 */
public class WfActionEvent<A extends Action> extends MqEvent {
	private A action;

	public WfActionEvent(String key, A action) {
		super(key, key);
		this.action = action;
	}

	@Override
	public String getBizType() {
		return action.bizType();
	}

	@Override
	public String getRoutingKey() {
		return action.routingKey();
	}
}
